package me.goldze.mvvmhabit.binding.viewadapter.textview;

import android.view.View;
import android.widget.TextView;

import androidx.databinding.BindingAdapter;

import com.jakewharton.rxbinding2.view.RxView;

import java.util.concurrent.TimeUnit;

import io.reactivex.functions.Consumer;
import me.goldze.mvvmhabit.binding.command.BindingCommand;

/**
 * Created by goldze on 2017/6/16.
 */

public class ViewAdapter {


    /**
     * view的onLongClick事件绑定
     */
    @BindingAdapter(value = {"text_color"}, requireAll = false)
    public static void text_color(TextView textView, Integer text_color) {
        textView.setTextColor(text_color);
    }

}
